<link href="css/index.css" rel="stylesheet" type="text/css" />
<ul class="fatherul">
<smart> foreach item = parent name = parentment from = $ProductCateArray </smart>
  <smart> if $smarty.foreach.parentment.iteration<4 or ($smarty.foreach.parentment.iteration>12 and $smarty.foreach.parentment.iteration<25) or ($smarty.foreach.parentment.iteration>33 and $smarty.foreach.parentment.iteration<46) </smart><smart> assign var="fathercss" value="father" </smart><smart> else </smart><smart> assign var="fathercss" value="father2" </smart><smart> /if </smart>
  <li class="<smart> $fathercss </smart>" ><a href="product.php?action=textlist&amp;pcid=<smart> $parent.id </smart>"><smart> $parent.name </smart></a>
    <ul>
      <smart> foreach name = parentbaby item = baby from = $parent.baby </smart>
      <smart>  if $smarty.foreach.parentbaby.iteration < 5  </smart>
      <li><a href="product.php?action=textlist&amp;pcid=<smart> $baby.id </smart>"><smart> $baby.name </smart></a> </li>
      <smart> /if </smart>
      <smart> /foreach </smart>
    </ul>
  </li>
  <smart> /foreach </smart>
</ul>